package demo.spring.restful.controllers;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import demo.spring.restful.domain.Hello;

@RestController
public class HelloController {
	@RequestMapping("/hello")
    public Hello greeting() {
        return new Hello("hello restful webservcie.");
    }
}
